<?php

namespace app\validate;

use share\validate\SceneValidate;

class OpenLoginValidate extends SceneValidate{
    protected $rule = [
        'key' => 'require|min:16',
        'smData' => 'require|min:32',   
        'password' => 'require|min:6',   
        'captcha' => 'require|min:4',  
        'scene' => 'require|min:4',  
        'hash' => 'require|min:32',  
        'vendor' => 'require|min:2',  
    ];   



    protected $scene = [
        'decode' => ['key','smData'],  
        'loginByPass' => ['password','captcha','scene','hash','vendor'],  
    ];
}